import {defineStore} from "pinia";

export const useWebInfo = defineStore("webInfo", {
    state: () => {
        return {
            webInfo: "",
        }
    },
    actions: {
        setWebInfo(webInfo) {
            this.webInfo = webInfo;
        },
        clearWebInfo() {
            this.webInfo = "";
        }
    },
    persist: {
        enabled: true,
        strategies: [{
            key: "webInfo",
            storage: localStorage,
        }]
    }
});